package org.dromara.easyai.extensions.ascend.core;

public class LibUtilsCannx {

	public static void loadLibrary(String libraryName, String... dependentLibraryNames) {
		LibUtils.OSType os = LibUtils.calculateOS();
		if (os == LibUtils.OSType.APPLE) {
			throw new JCannxException("This CANN version is not available on MacOS");
		} else {
			LibUtils.loadLibrary(libraryName, dependentLibraryNames);
		}
	}

}
